#ifndef STR_UTILS_H
#define STR_UTILS_H
#include <stdio.h>
#include <stdint.h>



/* We have this enumeration
 * because of bits arifmetic
 */

#define PRS_DELIMETER_MODE 1
#define PRS_COMMENT_REACHED 2


#define NO_DELIMETER 0
#define SPACE_DELIMETER 1
#define UNKNOWN_DELIMETER 2
#define INCOMING_DELIMETER 3
#define OUTCOMING_DELIMETER 7




#define NO_CONDITION 0
#define AND_CONDITION 1
#define OR_CONDITION 2
#define PIPELINE_CONDITION 3
#define FOREGROUND_CONDITION 4


//Check is it a parser delimeter
int8_t is_delimeter(int ch);

//Check is it a  change stream command
int8_t is_change_stream(char *expr);

//get condition of runner delimeter
int8_t get_run_chk_cond(char *expr);

int8_t is_emptystr(char *expr);
int8_t check_delimeters(char *expr);

#ifdef POSIX_ONLY
char *strdup(char *);
#endif

#endif // STR_UTILS_H
